package battle 
{
	import Common.GameDefine;
	
	/**
	 * ...
	 * @author 
	 */
	public class BattleResultCommand 
	{
		public static const BATTLENEXT:int = 0;
		public static const BATTLEWIN:int = 1;
		public static const BATTLELOSE:int = 2;
		public static const BATTLETIMEOUT:int = 3;
		
		
		public static const BATTLEHP:int = 0;
		public static const BATTLEMP:int = 1;
		public static const BATTLEHPMP:int = 2;
		public static const BATTLEMISS:int = 3;
		public static const BATTLEPARRY:int = 4;
		public static const BATTLEKILL:int = 5;
		
		
		public var turn:int = GameDefine.INVALIDID;
		public var result:int = GameDefine.INVALIDID;
		public var num:int = GameDefine.INVALIDID;
		
		public var action:Array = null;
		
		public function BattleResultCommand() 
		{
			action = new Array();
		}
		
		public function clear():void
		{
			turn = GameDefine.INVALIDID;
			result = GameDefine.INVALIDID;
			num = GameDefine.INVALIDID;
			
			while ( action.length ) 
			{
				action[ 0 ] = null;
				action.shift();
			}
		}
		
	}

}